<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/9/20
 * Time: 21:40
 */

class Auth extends MY_Controller
{
    function index()
    {
        $cookie = $this->input->cookie();
        $this->load->model('public/auth_model', 'auth');
        if (array_key_exists('_wsxt', $cookie)) {
            echo $this->auth->ver_cookie($cookie['_wsxt']);
        } else {
            echo json_encode(array('result' => ERROR, 'msg' => ''));
        }
        return;
    }
}